package com.xcity.db.entity;

import java.util.Date;

import com.xcity.db.mapper.ActivityRecordMapper;

public class ActivityRecord extends AbstractEntity<ActivityRecordMapper> {

	private int id;
	private byte type;
	private int phase;
	private int round;
	private long playerId;
	private Date time;
	
	public ActivityRecord() {}
	
	public ActivityRecord(byte type, int phase, int round, long playerId) {
		this.type = type;
		this.phase = phase;
		this.round = round;
		this.playerId = playerId;
		this.time = new Date();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public int getPhase() {
		return phase;
	}

	public void setPhase(int phase) {
		this.phase = phase;
	}

	public int getRound() {
		return round;
	}

	public void setRound(int round) {
		this.round = round;
	}

	public long getPlayerId() {
		return playerId;
	}

	public void setPlayerId(long playerId) {
		this.playerId = playerId;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

}
